package com.ecoolex.hotel.saas.core.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.hotel.saas.core.mapper.SalesUserWalletWithdrawalApplyMapper;
import com.ecoolex.hotel.saas.entity.SalesUserWalletWithdrawalApply;
import com.ecoolex.hotel.saas.pojo.QuerySalesUserWalletWithdrawalApplyDTO;

public interface SalesUserWalletWithdrawalApplyDAO extends SalesUserWalletWithdrawalApplyMapper {
	
	Long countForUser(@Param("storeId") Integer storeId, @Param("userId") Integer userId);
	
	List<SalesUserWalletWithdrawalApply> queryForUser(@Param("storeId") Integer storeId, @Param("userId") Integer userId, @Param("page") Page page);
	
	Long count(@Param("query") QuerySalesUserWalletWithdrawalApplyDTO query);
	
	List<SalesUserWalletWithdrawalApply> query(@Param("query") QuerySalesUserWalletWithdrawalApplyDTO query, @Param("page") Page page);
}